package com.bootdo.screen.controller;

import com.bootdo.screen.domain.ScreenDO;
import com.bootdo.screen.service.ScreenService;
import com.bootdo.common.utils.DateUtils;
import com.bootdo.common.utils.PageUtils;
import com.bootdo.common.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author bootdo 1992lcg@163.com
 */
@RequestMapping("/screen")
@Controller
public class ScreenController {
	@Autowired
    ScreenService bScreenService;

	@GetMapping()
	String screen() {
		return "screen/index";
	}

	@ResponseBody
	@GetMapping("/open/list")
	public List opentList(@RequestParam HashMap<String, Object> params) {
		return bScreenService.list(params);
	}

}
